package com.dongxing.concyrrency.chapter2;

/**
 * @author XavierDong
 **/
public class SimpleCalculatorStrategy implements CalculatorStrategy {

    private final static Double SALARY_RATE = 0.1;
    private final static Double BONUS_RATE = 0.15;


    @Override
    public Double calculate(Double salary, Double bonus) {
        return salary * SALARY_RATE + BONUS_RATE * bonus;
    }
}
